package plp.prolog.declaration;


import plp.prolog.memory.AmbienteExecucaoProlog;
import plp.prolog.memory.Utils;

public class Questao {
	
	private Expressao expressao;

	public Questao(Expressao expressao) {
		this.expressao = expressao;
	}
	
	public void avaliar(AmbienteExecucaoProlog ambienteExecucao) {
		if (expressao.avaliar(ambienteExecucao) ){
			Utils.imprimir("SIM");
		}else{
			Utils.imprimir("NAO");
		}
		
	}
	
}
